/**
 * 
 */
package com.jxc.dao.impl;

import java.io.Serializable;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.jxc.dao.RemindWarnDaoI;
import com.jxc.model.po.RemindWarn;

/**
 * @author Tino
 * 
 */
@Repository("threadRemindWarnDao")
public class RemindWarnDaoImpl implements RemindWarnDaoI {

	@Autowired
	private SessionFactory sessionFactory;

	@Override
	public Serializable save(RemindWarn remindWarn) {
		Session session = this.sessionFactory.openSession();
		Serializable serial = session.save(remindWarn);
		session.close();
		return serial;
	}

}
